import Vue from 'vue'
import 'normalize.css/normalize.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import '@/styles/index.scss' // global css

import App from './App'

import store from './store'

import router from './router'

import '@/icons' // icon

import '@/permission'

Vue.use(ElementUI)

import PageTools from '@/components/PageTools'
Vue.component(PageTools.name, PageTools)

Vue.config.productionTip = false

// 注册插件
// 注册插件
import componentPlugin from '@/components'
Vue.use(componentPlugin)

console.log(process.env)
// vue实例化
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
